package com.danciyixue.boot.dcyx.model.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.danciyixue.boot.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 用户单元学习状态实体对象
 *
 * @author youlaitech
 * @since 2025-06-27 11:06
 */
@Getter
@Setter
@TableName("dcyx_unit_study_status")
public class UnitStudyStatus extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 单元ID
     */
    private Long unitId;
    /**
     * 记忆完成状态(1:完成)
     */
    private Integer memoryCompleted;
    /**
     * 记忆测试分数
     */
    private Integer memoryScore;
    /**
     * 记忆测试用时(秒)
     */
    private Integer memoryTimeConsuming;
    /**
     * 听写完成状态(1:完成)
     */
    private Integer dictationCompleted;
    /**
     * 听写测试分数
     */
    private Integer dictationScore;
    /**
     * 听写测试用时(秒)
     */
    private Integer dictationTimeConsuming;
    /**
     * 默写完成状态(1:完成)
     */
    private Integer writingCompleted;
    /**
     * 默写测试分数
     */
    private Integer writingScore;
    /**
     * 默写测试用时(秒)
     */
    private Integer writingTimeConsuming;
    /**
     * 整体完成状态(1:完成)
     */
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Integer overallCompleted;
}
